package org.example;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @description:
 * @author: 谢超
 * @date: 2024/3/21 17:34
 */
@SpringBootApplication
@MapperScan("org.example.mapper")   // 扫描mybatis包所在路径
@EnableTransactionManagement        // 开启事务
@EnableFeignClients                 // 开启feign的远程调用
@EnableDiscoveryClient              // 开启服务注册和发现
@EnableAsync                        // 开启异步扫描
public class ShopApplication {
    public static void main(String[] args) {
        SpringApplication.run(ShopApplication.class, args);
    }
}
